package com.charlotte.study.gupao.decorator.battercake.v2;

/**
 * @author junjie.ding
 * @date 2020/3/9
 */
public class EggDecorator extends Decorator {
    public EggDecorator(BatterCake batterCake) {
        super(batterCake);
    }

    @Override
    public String getMsg() {
        return super.getMsg() + " + 1个鸡蛋";
    }

    @Override
    public int getPrice() {
        return super.getPrice() + 1;
    }
}
